package com.example.win.android_banduyujia.http.request;

import com.example.win.android_banduyujia.http.UrlContext;

import java.util.Map;

/**
 * Created by Win on 2015/9/22.
 */
public class SigninRequest extends BaseHttpRequest {
    public final static String URL = UrlContext.Url_Login.getContext();

    private String  mUserName;
    private String  mPassword;
    private String  mDevices;

    public SigninRequest(String userName, String password, String devices) {
              mUserName = userName;
              mPassword = password;
              mDevices = "2";
    }

    @Override
    protected String toRequestURL() {
        return URL;
    }

    @Override
    protected String toHttpMethod() {
       return HTTP_METHOD_POST;
    }

    @Override
    protected void toHttpRequestParams(Map<String, String> params) {
         params.put("cellphone", mUserName);
         params.put("password", mPassword);
         params.put("devices", "2");
    }
}
